﻿using Microsoft.AspNetCore.Mvc;
using SportsPlatform.Base;
using SportsPlatform.Dto.SportBusiness.ProjectType;
using SportsPlatform.Query.SportBusiness.Project;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsPlatform.SportBusiness.ISportBusiness
{
    /// <summary>
    /// 项目管理服务接口
    /// </summary>
    public interface IProjectService
    {
        /// <summary>
        /// 获取分页后项目列表
        /// </summary>
        /// <param name="query">查询参数</param>
        /// <returns></returns>
        Task<PagePagingDto<ProjectDto>> GetProject(GetProjectQuery query);

        /// <summary>
        /// 添加项目信息
        /// </summary>
        /// <param name="addProjectInfo">项目信息参数</param>
        /// <returns></returns>
        Task<BaseResultDto> AddProject(AddProjectInfoQuery addProjectInfo);

        /// <summary>
        /// 更新项目信息
        /// </summary>
        /// <param name="updateProjectInfo">更新参数</param>
        Task<BaseResultDto> UpdateInfo(UpdateProjectInfoQuery updateProjectInfo);

        /// <summary>
        /// 更新项目状态
        /// </summary>
        /// <param name="updateProjectState">更新参数</param>
        /// <returns></returns>
        Task<BaseResultDto> UpdateState(UpdateProjectStateQuery updateProjectState);

        /// <summary>
        /// 编辑比赛项目时选择项目类别列表
        /// </summary>
        /// <returns></returns>
        Task<ResultListDto<GetProjectTypeListDto>> GetProjectTypeList();

        /// <summary>
        /// 编辑比赛项目时选择项目列表
        /// </summary>
        /// <returns></returns>
        Task<ResultListDto<GetProjectInfoDto>> GetProjectInfo(GetProjectInfoQuery query);

        /// <summary>
        /// 客户端分页获取项目信息（用于信息同步）
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<PagePagingDto<GetPageProjectKHDDto>> GetPageProjectKHD(BasePageQuery query);
    }
}
